-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use XBlockI18NService js translations | FC-0012 #365
Conversation
Thanks for the pull request, @OmarIthawi! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Thanks for the pull request, @OmarIthawi! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. This is currently a draft pull request. When it is ready for our review and all tests are green, click "Ready for Review", or remove "WIP" from the title, as appropriate. |
Thanks for the PR @OmarIthawi! Let us know when it's ready for review. |
6a22743
to
48f4019
Compare
Hey @OmarIthawi, any updates on when you'll be able to come back to this PR? |
@itsjeyd this is ready and tested. Please let me know if this warrants test cases or not. It'll need substantial mocking, but probably won't be practically useful. Sorry for the radio silence, I've been focusing on finishing the edx-platform work for this to be useful. |
48f4019
to
9f4cbdf
Compare
ee1364b
to
9f4cbdf
Compare
9f4cbdf
to
b66a2ee
Compare
3a499d9
to
bef499a
Compare
bef499a
to
282785e
Compare
@OmarIthawi Thanks for the update, and no worries! I'll let @Agrendalath answer your question about whether this change warrants test cases or not. He's your technical reviewer here and can provide final approval for this PR. There is no need for me to have a look the changes; feel free to cancel the request for review that you sent earlier. |
Thanks @itsjeyd. @Agrendalath this is ready for merge as far as our testing tells us. Also, the existing test cases already covers the new code and failed a couple of times when there was an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OmarIthawi, this looks good to me. Additionally to the two minor comments, please:
- Drop ad6ad2b (I already merged the version update in Python Requirements Update #376).
- Bump the minor version.
- Add a CHANGELOG entry.
69036b9
to
6309325
Compare
6309325
to
4b7ad8d
Compare
Thanks @Agrendalath. Let me test the pull request again and I'll make it ready for review once manual tests are okay. A little change here and there is prune to make a bug somewhere. |
87cbb98
to
0d3b858
Compare
Tested it again and it looks good. |
@Agrendalath please let me know if anything is needed. Otherwise, I believe this is ready for merge. |
@OmarIthawi, as I mentioned here, we should bump the minor version, not patch. We're technically adding a new functionality, not fixing a bug. |
0d3b858
to
f4b6800
Compare
@Agrendalath Good catch. You're right, I've got it mixed up. Please check now. |
f4b6800
to
d58352e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
- I tested this: checked that this XBlock uses the
get_javascript_i18n_catalog_url
method by default and the old approach as a fallback; the new functionality was already tested in theedx-platform
PR - I read through the code
- I checked for accessibility issues: n/a
- Includes documentation: n/a
@OmarIthawi 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
1 similar comment
@OmarIthawi 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Thanks a lot @Agrendalath!! |
Implement OEP-58 JavaScript translations
atlas pull
for the edx-platform and its plugins FC-0012 edx-platform#33166atlas pull
for XBlock translations | FC-0012 edx-platform#33698Testing
Tested with results posted openedx/edx-platform#33698 (comment)
Reference
This pull request is part of the FC-0012 project which implements the Translation Infrastructure update OEP-58.